#ifndef TCP_CLIENT_H
#define TCP_CLIENT_H


#include <QTcpSocket>
#include <QHostAddress>

class TCPClient
{
public:
    TCPClient();

private:
    QTcpSocket *tcpClient;

private slots:
    //客户端槽函数
    void ReadData();
    void ReadError(QAbstractSocket::SocketError);

    void on_btnConnect_clicked();
    void on_btnSend_clicked();
    void on_pushButton_clicked();
};

#endif // TCP_CLIENT_H
